﻿using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;

public partial class AdminCMS_Admin_Top : System.Web.UI.Page
{
    protected int UserID = 0;

    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            UserID = UIMethod.GetUserID();
            DataEntity.tab_Admin t = new DataEntity.tab_Admin();
            t.Select(UserID);

            string hello = t.adm_RealName + "," + UIMethod.TimeGreet();
            lil_userName.Text = hello;
        }
    }

    protected void signout_Click(object sender, EventArgs e)
    {
        //注销
        AuthRole.SignOut();        
        UIMethod.GoToURL("Admin_Login.aspx", true);
    }
}
